<template>
  <div class="contain">
    <div class="header">
      <div class="tab">
        <ul>
          <li @click='tabIndex=0' :class="{active: tabIndex===0? true:false}">
            <a>All</a>
          </li>
          <li @click='tabIndex=1' :class="{active: tabIndex===1? true:false}">
            <img  src="../../../assets/image/me.png" alt="">
            <a>Staff</a>
          </li>
          <li @click='tabIndex=2' :class="{active: tabIndex===2? true:false}">
             <a>Lastest/Popular</a>
             <img  src="../../../assets/image/updown.png" alt="">
          </li>
        </ul>
      </div>
      <div class="tab_bottom">
        <span>如果进行化妆分类的课程...</span>
      </div>
    </div>
    <!-- 展示区 -->
    <containlist/>
  </div>
</template>
<script>
import Containlist from './containlist'
export default {
  data() {
    return {
      tabIndex: 0
    }
  },
  components: {
    Containlist
  },
  methods: {
    changeStatus() {
      this.tabIndex = 0
    }
  },
  mounted() {
    this.tabIndex = 0
  }
}
</script>
<style lang="less" scoped>
// .contain{
//   background: #f5f5f5;
// }
.active {
  a {
    color: #333;
  }
  border-bottom: 1px #c11613 solid;
}

.header {
  height: 250px;
  width: 100%;
  background: #fff;
  position: relative;
  .tab {
    line-height: 40px;
    width: 100%;
    background: #f9f9f9;
    position: absolute;
    top: 0;
    left: 0;
    ul {
      width: 92%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      li {
        margin-left: 5px;
        a {
          font-size: 15px;
          color: #808080;
        }
        img {
          width: 15px;
          height: 16px;
        }
      }
      .active {
        a {
          font-size: 15px;
          color: #333;
        }
        border-bottom: 1px #c11613 solid;
      }
      // .staff{
      //   background: url('../../../assets/image/me.png') no-repeat left;
      //   padding-left: 10px;
      // }
      // .updown{
      //    background: url('../../../assets/image/updown.png') no-repeat right;
      //    padding-right: 20px;
      // }
    }
  }
  .tab_bottom {
    line-height: 40px;
    width: 100%;
    background: rgba(197, 51, 46, 0.9);
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
    span {
      color: #fff;
      padding-left: 15px;
      font-size: 14px;
    }
  }
}
</style>
